/*
 * @Author: lijing
 * @e-mail: 1413979079@qq.com
 * @LastEditors: lijing
 * @Date: 2019-10-10 18:16:58
 * @LastEditTime: 2020-06-07 20:27:56
 * @FilePath: \client\src\request\url.js
 * @Description: 封装所有url
 */

// const baseUrl = "http://localhost:8080/api/"
const baseUrl = "http://www.codingli.xyz/api/"
// const baseUrl = "http://123.56.1.174:8886/"
// const baseUrl = "http://117.50.23.198:8886/"

const comm = {
  // user
  userInfo: '/comm/user/info',
  login: '/comm/user/login',
  // article
  pageArticles: 'comm/articles/page',
  getArticleById: 'comm/articles/',
  hotArticles: 'comm/articles/hot',
  categories: 'comm/articles/categories',
  tags: 'comm/articles/tags',
  archives: 'comm/articles/archives',
  comment: 'comm/comment/',
  blogInfo: 'comm/blog/info',
  message: 'comm/message/',
  profile: 'comm/blog/profile',

  initCheck: 'init/check',
  initUser: 'init/user',
  initBlog: 'init/blog',
  intiProfile: 'init/profile',

  websites: 'plugins/websites',
}

// admin
const admin = {
  token: "admin/user/token",
  user: "admin/user/",
  articles: "admin/articles/",
  query: "admin/articles/query",
  uploadImg: "admin/image/upload",
  comment: "admin/comment/",
  chart: "admin/blog/chart",
  draft: "admin/draft/",
  export: "admin/blog/export",
  import: "admin/blog/import",
  profile: "admin/blog/profile"
}
export default {
  baseUrl,
  comm,
  admin
}
